<?
include_once 'dbconnect.php';


function safeEmail($email) {
    $length = strlen($email);
    $obfuscatedEmail = "";
    for ($i = 0; $i < $length; $i++)
        $obfuscatedEmail .= "&#" . ord($email[$i]);  // creates ASCII HTML entity
    $return = '<a href="mailto:' . $obfuscatedEmail . '">'.$obfuscatedEmail.'</a>';
    return $return;
}
?>